package org.example;

import org.example.dto.Dog;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableFeignClients
public class EurekaConsumerApplication {
    public static void main(String[] args) {
        testBuilder();
        SpringApplication.run(EurekaConsumerApplication.class, args);
    }

    public static void testBuilder(){
        //模拟 Feign.build() 的链式编程
        Dog d = new Dog().age(10).name("pz").personName("gx").type("dog").color("pink");
        System.out.println(d.toString());
    }
}
